// register
import register from '../../../scripts/angular/register.js';

// routers
import ChipRouter from '../routers/chip.routers.js';

// services
import ChipService from '../services/chipService.js';
import RunnerService from '../../runner/services/runnerService.js';

// controllers
import ChipController from '../controllers/chip.controller.js';
import ChipListController from '../controllers/chiplist.controller.js';
import ChipEditController from '../controllers/chipedit.controller.js';
import ChipImportController from '../controllers/chipimport.controller.js';


angular
	.module('chip.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog',  
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'  
	])
	.config(ChipRouter)
	.controller('ChipController', ChipController)
	.controller('ChipListController', ChipListController)
	.controller('ChipEditController', ChipEditController)
	.controller('ChipImportController', ChipImportController);



register('chip.module')
    .factory('ChipService', ChipService)
    .factory('RunnerService', RunnerService);